<?php
    /*
    Description: This just dumps the posted form vars to the browser. It also kills mailing of the form, saving, and redirection. 
    */
    // YOU MUST name the file the same name as the plugin like below (with the prefix of course)
    class PixelApp_Controller_Plugin_form_dump_vars extends PixelApp_Controller_Plugin {
        var $is_configurable = false;
        function plugin($params)
        {
            echo '<pre>';
            echo htmlentities(print_r($params,1));
            echo '<pre>';
            $this->action_controller->do_save_inquiry    = false;
            $this->action_controller->do_inquiry_notify  = false;
            $this->action_controller->do_mail_autoresponder = false;
            $this->action_controller->do_redirect        = false;
            return true;
        }
        /*function configure()
        {
           $html = '<h3>Configure Default Plugin</h3>';
           $form =& new HTML_QuickForm('configure_plugin','post',$_SERVER['REQUEST_URI'],'','',true);
           $form->addElement('hidden','plugin',$_REQUEST['plugin']);
           $form->addElement('text','sample','Sample Field');
           $form->addElement('submit','submit','submit');
           $form->addRule('sample', 'Sample Field is required', 'required', null, 'client');
           if ( $form->validate() )
           {
             $html .= '<h4 style="color:red">Form Saved</h4>';
             $form->freeze();
           }

           ob_start();
           $form->display();
           $html .= ob_get_contents();
           ob_end_clean();
           return $html;
        }*/

    }

?>